package com.iexbuy.ihg.map;

import java.util.ArrayList;
import java.util.List;

import android.graphics.drawable.Drawable;

import com.baidu.nplatform.comapi.basestruct.GeoPoint;
import com.baidu.nplatform.comapi.map.ItemizedOverlay;
import com.baidu.nplatform.comapi.map.MapGLSurfaceView;
import com.baidu.nplatform.comapi.map.OverlayItem;
import com.iexbuy.ihg.entity.MessageVo;

public class NarrowOverlay extends ItemizedOverlay<OverlayItem> {

	List<MessageVo> gpsItems = new ArrayList<MessageVo>();
	
	public NarrowOverlay(Drawable mark, MapGLSurfaceView mapView) {
		super(mark, mapView);
	}
	
	public boolean onTap(int index) {  
        //在此处理item点击事件  
        return true;  
    }
	
	public boolean onTap(GeoPoint pt, MapGLSurfaceView mapView){  
        //在此处理MapView的点击事件，当返回 true时  
        super.onTap(pt,mapView);  
        return false;  
	}

	/**
	 * @return the gpsItems
	 */
	public List<MessageVo> getGpsItems() {
		return gpsItems;
	}

	/**
	 * @param gpsItems the gpsItems to set
	 */
	public void setGpsItems(List<MessageVo> gpsItems) {
		this.gpsItems = gpsItems;
	}
	
}
